package annotation;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class Child extends Parent {
    public int chongzai(int i){
        return 1;
    }
    public String chongzai(){
        return null;
    }


    public static void main(String[] args) {
/*        Parent parent=new Child();
        Class clzz=parent.getClass();

        Annotation[] annotations=clzz.getAnnotations();
        Method[] methods=clzz.getDeclaredMethods();
        for(Method method:methods){
            if(method.getName().equals("give")) {
                System.out.println(method.getAnnotation(MyAnnotation.class).value());
            }
        }*/
/*        Float a =3.14f;
        System.out.println(a instanceof Float);
        System.out.println("中国zg".getBytes().length); //UTF-8编码输出 8    因为UTF-8字符一个中文三个字节
        Child child=new Child();
        System.out.println(child.thisTest());
        System.out.println(Child.class.getName());*/
        System.out.println((char)20013);
    }
    public boolean thisTest(){
        return this==Child.this;
    }

}
